module.exports = {
    state: {
        data: {}
    },
    mutations: {
        setData (state, data) {
            state.data = data
        }
    },
    actions: {
        getData ({commit, state}, query) {
            axios({url: 'http://qc.facethink.net/wechat/go'+query}).then((resp) => {
                commit('setData', resp.data)
            })
        }
    },
    getters: {
        data (state) {
            return state.data
        }
    }
}